package org.jxht.service.impl;

import org.jxht.dao.MajProDao;
import org.jxht.dao.ProfessionDao;
import org.jxht.dto.MajProDto;
import org.jxht.dto.ProfessionDto;
import org.jxht.service.ProfessionServie;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by huang on 2017/3/15 0015.
 */
@Service
public class ProfessionServiceImpl implements ProfessionServie {

    @Resource
    private ProfessionDao ProfessionDao;

    @Resource
    private MajProDao majProDao;

    public void insertProfessionService(ProfessionDto dto) {
        ProfessionDao.insertProfessionDao(dto);
    }

    public List queryProfessionService(MajProDto dto) {
        return majProDao.queryMajProDao(dto);
    }

    public void deleteProfessionService(ProfessionDto dto) {
        ProfessionDao.deleteProfessionDao(dto);
    }
}
